home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2293 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Amiga Memory Map Needed!!!
  5. Date: 30 Jan 1996 00:03:50 +0100
  6. Organization: dis-
  7. Message-ID: <4ejjom$na7@serpens.rhein.de>
  8. References: <310495eb@gauss.demon.co.uk> <1109oaw60.alamito@marketgraph.xs4all.nl> <4eisdt$dkn@sunsystem5.informatik.tu-muenchen.de>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer) writes:
  12.  
  13. >Am I right it doesn't change once the computer has booted ?
  14.  
  15. Depends on what you think is "booted". It surely doesn't change at
  16. the time the startup-sequence is run. If it would it could cause
  17. every program to crash because there is no way for a program to find
  18. out wether it did change.
  19.  
  20. >The question is if I catch it once at programstart, does it make a difference.
  21.  
  22. No. In fact you are supposed to catch it at program start because the pointer
  23. usually resides in chip memory (or the access is emulated when you run Enforcer).
  24. Copying the pointer to a location in fast memory is therefore faster.
  25.  
  26. >Same question goes for other libs:
  27.  
  28. >if I open a lib each time I call a function of it (for example gfx.library),
  29. >will this puzzle up something, i.e is my task to do all lib calls
  30. >with one lib-handle ?
  31.  
  32. It isn't. If you insist to open and close a library that often you just add
  33. lots of overhead to each call. Also, if you close a library the library base
  34. pointer becomes invalid.
  35.  
  36. Another question is what happens if one task openes a library several times
  37. without closing it. Some libraries will return different bases everytime
  38. they are opened, so you have to be careful. Best is to avoid to open a library
  39. several times within a task.
  40.  
  41. BTW, why don't you read the RKRMs ? They do answer your questions.
  42.  
  43. -- 
  44.                                 Michael van Elst
  45.  
  46. Internet: mlelstv@serpens.rhein.de
  47.                                 "A potential Snark may lurk in every tree."
  48.